package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 总成表 set_product
 *
 * @author ruoyi
 */
@Data
@Entity
@Table(name = "set_product")
@EqualsAndHashCode(callSuper = true)
@TableName(value = "set_product")
@ApiModel(description = "总成表")
public class SetProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty(value = "ID")
    private Long id;

    /** 物料ID */
    @ApiModelProperty(value = "物料ID")
    @Excel(name = "物料ID")
    private Integer bomId;

    /** 总成名称 */
    @ApiModelProperty(value = "总成名称")
    @Excel(name = "总成名称")
    private String productName;

    /** 总成件号 */
    @ApiModelProperty(value = "总成件号")
    @Excel(name = "总成件号")
    private String productCode;

    /** 打印描述 */
    @ApiModelProperty(value = "打印描述")
    @Excel(name = "打印描述")
    private String printDescribe;

    /** 内部件号 */
    @ApiModelProperty(value = "内部件号")
    @Excel(name = "内部件号")
    private String innerCode;

    /** 总成大类编码 */
    @ApiModelProperty(value = "总成大类编码")
    @Excel(name = "总成大类编码")
    private String productCatalog;

    /** 总成类型 */
    @ApiModelProperty(value = "总成类型")
    @Excel(name = "总成类型")
    private Integer ispart;

    /** gsk */
    @ApiModelProperty(value = "gsk")
    @Excel(name = "gsk")
    private String gsk;

    /** lfd */
    @ApiModelProperty(value = "lfd")
    @Excel(name = "lfd")
    private String lfd;

    /** 总成状态（0正常 1关闭） */
    @ApiModelProperty(value = "总成状态")
    private String status;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("bomId", getBomId())
                .append("productName", getProductName())
                .append("productCode", getProductCode())
                .append("printDescribe", getPrintDescribe())
                .append("innerCode", getInnerCode())
                .append("productCatalog", getProductCatalog())
                .append("ispart", getIspart())
                .append("gsk", getGsk())
                .append("lfd", getLfd())
                .append("status",getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
